home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
LIFER__
/
PROTO
/
U
/
LIFE_WIN.C
< prev
next >
Wrap
Text File
|
1991-08-01
|
2KB
|
107 lines
/* LIFE_WINDOW */
/* File name: LIFE_WINDOW */
/* Function: Handle a modeless dialog */
/* History: 7/23/91 Original by Prototyper 3.0 */
#include "PCommonLife.h" /* Common */
#include "Common_Life.h" /* Common */
#include "PUtils_Life.h" /* General Utilities */
#include "Utils_Life.h" /* General Utilities */
#include "LIFE_WINDOW.h" /* This file */
/* ======================================================= */
/* Routine: U_Init_LIFE_WINDOW */
/* Purpose: This routine is called while when the program is first run. */
/* This is used for onetime initialization. */
void U_Init_LIFE_WINDOW()
{
} /* End of procedure */
/* ======================================================= */
/* Routine: U_Moved_LIFE_WINDOW */
/* Purpose: This routine is called when our window gets moved on the screen, */
/* or to another screen. */
void U_Moved_LIFE_WINDOW(theDialog,OldRect)
DialogPtr theDialog;
Rect *OldRect;
{
} /* End of procedure */
/* ======================================================= */
/* Routine: U_Update_LIFE_WINDOW */
/* Purpose: This routine is called when our window gets an update event */
void U_Update_LIFE_WINDOW(theDialog)
DialogPtr theDialog;
{
} /* End of procedure */
/* ======================================================= */
/* Routine: U_Setup_LIFE_WINDOW */
/* Purpose: This routine is called when our modeless dialog is opened */
void U_Setup_LIFE_WINDOW(theDialog)
DialogPtr theDialog;
{
} /* End of procedure */
/* ======================================================= */
/* Routine: U_Close_LIFE_WINDOW */
/* Purpose: This routine is called when our modeless dialog is closed */
void U_Close_LIFE_WINDOW(theDialog)
DialogPtr theDialog;
{
} /* End of procedure */
/* ======================================================= */
/* Routine: U_Hit_LIFE_WINDOW */
/* Purpose: Hit in the modeless dialog */
void U_Hit_LIFE_WINDOW(theDialog,itemHit,ExitDialog,theEvent)
DialogPtr theDialog;
short itemHit;
Boolean *ExitDialog;
EventRecord *theEvent;
{
if (itemHit ==Res_Dlg_Continue) /* Handle the Button being pressed */
{
LIFE_PROGRAM();
}
if (itemHit ==Res_Dlg_Quit) /* Handle the Button being pressed */
{
doneFlag = TRUE;
}
} /* End of procedure */
/* ======================================================= */